package com.electronicwallet;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

/**
 * The Class AccountView displays to the user their account information.
 */
public class AccountView extends Activity implements OnClickListener{
	
	/**
	 * Called when the activity is first created.
	 *
	 * @param savedInstanceState the saved instance state
	 */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mintaccountview);
        
        View backButton = findViewById(R.id.back);
        
        backButton.setOnClickListener(this);
    }

	/* Depending on the button click by the user, that button will execute.
	 * 
	 * @see android.view.View.OnClickListener#onClick(android.view.View)
	 */
	@Override
	public void onClick(View v) {
		switch(v.getId()){
		// Back button, return to previous screen.
		case R.id.back:
			finish();
			break;
		}
	}
}
